feat: structured compliance policy report in job summary#210
feat: structured compliance policy report in job summary#210shenxianpeng wants to merge 1 commit into
Conversation
Replace the bare pass/fail job summary with a structured 'Commit Check Policy Report' that shows per-check results as a Markdown table with pass/fail indicators. The report leverages commit-check's --format json output to determine per-check pass/fail status without changing the existing validation flow or PR comment behavior. Key changes: - Add CheckResult dataclass and report-building functions - On pass: shortcuts to all-pass results (no extra work) - On failure: runs per-check JSON lookups to identify which exact checks failed - Raw output preserved in a collapsible <details> section - Backward compatible: run_commit_check() and add_pr_comments() are unchanged
|
Warning Review limit reached
More reviews will be available in 36 minutes and 4 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Commit-Check ✔️ |
What
Replaces the bare pass/fail job summary with a structured Commit Check Policy Report that shows per-check results as a clean Markdown table.
Before (current)
After (this PR)
Why
run_commit_check()andadd_pr_comments()are completely unchangedHow
commit-check --format jsonfor reliable per-check pass/fail determination<details>section for diagnosticsCheckResultdataclass,build_policy_report(),determine_check_results(), andbuild_pass_results()functionsChecklist
result.txtand PR comment behavior unchangedjob-summary: falsestill skips as before